package io.easyspring.common.generator.convertor;

/**
 * 模块名称的转换器
 *
 * @author summer
 * @version V1.0.0-RELEASE
 * DateTime 2019-05-11 19:45
 */
public class ModelNameConvertor {

    /**
     * 根据模块名称生成模块的路径
     *
     * @param modelName 模块名称
     * @return java.lang.String
     * Author summer
     * Version V1.0.0-RELEASE
     * DateTime 2019-05-11 19:46
     */
    public static String convert2ModelPath(String modelName){
        return "/" + modelName;
    }

    /**
     * 根据模块名称生成项目的模块后缀
     *
     * @param modelName 模块名称
     * @return java.lang.String
     * Author summer
     * Version V1.0.0-RELEASE
     * DateTime 2019-05-11 19:47
     */
    public static String convert2ProjectModelSuffix(String modelName){
        return "-" + modelName;
    }
}
